'use strict';

exports.security = {
  csrf: {
    enable: false,
  },
};
exports.logger = {
  // 禁用所有日志输出
  disableConsoleAfterReady: true,
  consoleLevel: 'NONE',
  level: 'NONE',
  
  // 禁用文件日志
  disableFile: true,
  
  // 或者将日志重定向到临时目录
  dir: '/tmp/egg-test-logs'
};
exports.sequelize = {
  dialect: 'mysql',
  host: '127.0.0.1',
  port: 3306,
  password: '302108jw302',
  database: 'egg-beehive-test',
  timezone: '+08:00',
  define: {
    raw: true,
    underscored: false,
    charset: 'utf8',
    timestamp: true,
    createdAt: 'created_at',
    updatedAt: 'updated_at',
    deletedAt: 'deleted_at',
    dialectOptions: {
      dateStrings: true,
      typeCast: true,
      // collate: 'utf8_general_ci',
    },
  },
};

exports.redis = {
  client: {
    port: 6379,
    host: '127.0.0.1',
    password: '302108jw302',
    db: 1,
  },
};
